#include "map.h"

Map::Map(void)
{
}

Map::~Map(void)
{
}

void Map::readSource(istream &istr)
{
	istr>>sourceMatrix;
	size=sourceMatrix.size();
}

void Map::buildMap()
{
	int i,j;
	matrix.resize(size.x);
	for(int i=0;i<size.x;i++)
		matrix[i].resize(size.y);

	for(i=0;i<size.x;i++)
		for(j=0;j<size.y;j++)
		{
			if(sourceMatrix(i,j).find("_")!=string::npos)
				matrix[i][j].nothing=true;

		}
}
